package stylistcrm.core.services.order.enums;

public enum EnumDeliveryWay {

	EMS("0","EMS"),
	SHUNFENG("1","顺丰快递"),
	YUANTONG("2","圆通快递"),
	SHENTONG("3","申通快递"),
	HUITONG("4","汇通快递")
	;

	private String code;

	private String desc;

	private EnumDeliveryWay(String code, String desc){
		this.code=code;
		this.desc=desc;
	}
	
	public String getCode(){
		return code;
	}
	
	public String getDesc(){
		return desc;
	}
	
	public static EnumDeliveryWay getEnum(String code) {

        for (EnumDeliveryWay enumValue : EnumDeliveryWay.values()) {
            if (enumValue.getCode().equals(code))
                return enumValue;
        }

        return null;
    }
}
